package us.mooresr.geartrack.shared.model;

import java.io.Serializable;
import java.lang.Long;
import java.lang.String;
import java.lang.Integer;

import com.googlecode.objectify.annotation.NotSaved;
import com.googlecode.objectify.annotation.Subclass;


/**
 * A thing which we track, which can be borrowed or returned.
 * 
 * @author christopher_moore
 *
 */
@Subclass
public class Item extends DatastoreObject implements Serializable {

	private static final long serialVersionUID = 7223166277458517040L;
	private Integer serial;
	private String description;
	private Long homeLocationId;
	private Long itemTypeId;
	@NotSaved Location location;
	@NotSaved ItemType itemType;

	public Item() {
	}

	public Item(String name) {
		this.setName(name);
	}

	public void setSerial(Integer serial) {
		this.serial = serial;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public void setHomeLocationId(Long homeLocationId) {
		this.homeLocationId = homeLocationId;
	}

	public void setItemTypeId(Long itemTypeId) {
		this.itemTypeId = itemTypeId;
	}

	public Integer getSerial() {
		return serial;
	}

	public String getDescription() {
		return description;
	}

	public Long getHomeLocationId() {
		return homeLocationId;
	}

	public Long getItemTypeId() {
		return itemTypeId;
	}

	public Location getLocation() {
		return location;
	}

	public void setLocation(Location location) {
		this.location = location;
	}

	public ItemType getItemType() {
		return itemType;
	}

	public void setItemType(ItemType itemType) {
		this.itemType = itemType;
	}
	
	
}
